﻿using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MyEventClient.Event
{
    public class BookTitleChangeEvent : IntegrationEvent
    {
        public int BookId { get; private set; }
        public string Title { get; private set; }
        public string OldTitle { get; private set; }


        public BookTitleChangeEvent(int bookId, string title, string oldTitle)
        {
            BookId = bookId;
            Title = title;
            OldTitle = oldTitle;
        }
    }
}
